<h1>Listing Users</h1>

<table>
	<tr>
		<th>Login</th>
		<th>Email</th>
	</tr>
	
	<% for user in @users %>
		<tr>
			<td><%=h user.login %></td>
			<td><%=h user.email %></td>
			<td><%= link_to 'Show', user %></td>
			<td><%= link_to 'Edit', edit_user_path(user) %></td>
			<td><%= link_to 'Delete', user, :confirm => "Are you sure you want delete '#{user.login}' ?", :method => :delete %></td>
		</tr>
	<% end %>
</table>

<br />
<%= link_to 'New User', new_user_path %>